import request from '@/sheep/request';

export default {
   // 首页信息
    indexNews: (data) =>
     request({
       url: 'api/info/index',
       method: 'POST',
       data,
       custom: {
			showLoading: false,
			showError: false,
       },
    }),
	//地址信息
	area: (data) =>
	 request({
	   url: 'api/index/area',
	   method: 'POST',
	   data,
	   custom: {
			showLoading: false,
			showError: false,
	   },
	}),
	// 详情
	info: (data) =>
	 request({
	   url: 'api/info/con',
	   method: 'POST',
	   data,
	   custom: {
			showLoading: false,
			showError: false,
	   },
	}),
	//获取签到日历
	getDate: (data) =>
	 request({
	   url: 'api/sign/calendar',
	   method: 'POST',
	   data,
	   custom: {
			showLoading: false,
			showError: false,
	   },
	}),
	//投诉
	violation: (data) =>
	 request({
	   url: 'api/violation/add',
	   method: 'POST',
	   data,
	   custom: {
			showLoading: false,
			showError: false,
	   },
	}),
	//订单列表
	getOrderList: (data) =>
	 request({
	   url: 'api/order/index',
	   method: 'POST',
	   data,
	   custom: {
			showLoading: false,
			showError: false,
	   },
	}),
	//发布
	pushAdd: (data) =>
	 request({
	   url: 'api/push/add',
	   method: 'POST',
	   data,
	   custom: {
			showLoading: false,
			showError: false,
	   },
	}),
	//发布
	orderInfo: (data) =>
	 request({
	   url: 'api/order/con',
	   method: 'POST',
	   data,
	   custom: {
			showLoading: false,
			showError: false,
	   },
	}),
	//订单操作
	setOrder: (data) =>
	 request({
	   url: 'api/order/edit',
	   method: 'POST',
	   data,
	   custom: {
			showLoading: false,
			showError: false,
	   },
	}),
	// 发布列表
	pushList: (data) =>
	 request({
	   url: 'api/push/index',
	   method: 'POST',
	   data,
	   custom: {
			showLoading: false,
			showError: false,
	   },
	}),
	// 删除发布
	delePush: (data) =>
	 request({
	   url: 'api/push/del',
	   method: 'POST',
	   data,
	   custom: {
			showLoading: false,
			showError: false,
	   },
	}),
	//发布详情
	infoPush: (data) =>
	 request({
	   url: 'api/push/con',
	   method: 'POST',
	   data,
	   custom: {
			showLoading: false,
			showError: false,
	   },
	}),
	// 编辑发布
	setPush: (data) =>
	 request({
	   url: 'api/push/edit',
	   method: 'POST',
	   data,
	   custom: {
			showLoading: false,
			showError: false,
	   },
	}),
	// 充值创建订单
	addOrder: (data) =>
	 request({
	   url: 'api/rech/add',
	   method: 'POST',
	   data,
	   custom: {
			showLoading: false,
			showError: false,
	   },
	}),
	// 消息
	newsList: (data) =>
	 request({
	   url: 'api/chat/index',
	   method: 'POST',
	   data,
	   custom: {
			showLoading: false,
			showError: false,
	   },
	}),
	//获取联系方式
	getNews: (data) =>
	 request({
	   url: 'api/contact/exchange',
	   method: 'POST',
	   data,
	   custom: {
			showLoading: false,
			showError: false,
	   },
	}),
	//聊天记录
	getjl: (data) =>
	 request({
	   url: 'api/chat/con',
	   method: 'POST',
	   data,
	   custom: {
			showLoading: false,
			showError: false,
	   },
	}),
	//获取频道
	getChannel: (data) =>
	 request({
	   url: 'api/chat/getChannel',
	   method: 'POST',
	   data,
	   custom: {
			showLoading: false,
			showError: false,
	   },
	}),
	//获取消息
	getCon: (data) =>
	 request({
	   url: 'api/chat/con',
	   method: 'POST',
	   data,
	   custom: {
			showLoading: false,
			showError: false,
	   },
	}),
	addCon:(data) =>
	 request({
	   url: 'api/chat/sendMsg',
	   method: 'POST',
	   data,
	   custom: {
			showLoading: false,
			showError: false,
	   },
	}),
	createOrder:(data) =>
	 request({
	   url: 'api/order/createOrder',
	   method: 'POST',
	   data,
	   custom: {
			showLoading: false,
			showError: false,
	   },
	}),
	// 获取分享图
	getimg:(data) =>
	 request({
	   url: 'api/poster/getimg',
	   method: 'POST',
	   data,
	   custom: {
			showLoading: false,
			showError: false,
	   },
	}),
	// 分享计数
	getshared:(data) =>
	 request({
	   url: 'api/share/shared',
	   method: 'POST',
	   data,
	   custom: {
			showLoading: false,
			showError: false,
	   },
	}),
	//修改价格
	setprice:(data) =>
	 request({
	   url: 'api/chat/setprice',
	   method: 'POST',
	   data,
	   custom: {
			showLoading: false,
			showError: false,
	   },
	}),
};
